package Entity;
import java.io.Serializable;
import java.util.*;

/**
 * this entity used to send information about the users to the DB
 * the query will run according to the op code.
 * @author Nofar
 *
 */
public class User implements Serializable {
	

	private static final long serialVersionUID = 1L;
	private Integer userName;  // int is Not an object :-\
	private String password;
	private String fName;
	private String L_name;
	private String email;
	private String address;
	private String age;
	private String phoneNum;
	private String privilage;
	private String role;
	private Boolean is_exists;
	private Boolean is_logged;
	
	
	public User(){
		is_exists =new Boolean(false);
		is_logged=new Boolean(false);
	}

	public User (int userName, String password){
		this.setUserName(new Integer (userName));
		this.setPassword(new String (password));
		is_exists =new Boolean(false);
		is_logged=new Boolean(false);
	}

	public Integer getUserName() {
		return userName;
	}

	public void setUserName(Integer userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return fName;
	}

	public void setName(String name) {
		this.fName = name;
	}
	public String getLName() {
		return L_name;
	}

	public void setLName(String Lname) {
		this.L_name = Lname;
	}

	public String getEmail() {
		return email;
	}
	

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the age
	 */
	public String getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(String age) {
		this.age = age;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPrivilage() {
		return privilage;
	}

	public void setPrivilage(String role) {
		this.privilage = role;
	}

	public Boolean getIs_exists() {
		return is_exists;
	}

	public void setIs_exists(Boolean is_exists) {
		this.is_exists = is_exists;
	}
	public Boolean getIs_logged() {
		return is_logged;
	}

	public void setIs_logged(Boolean is_logged) {
		this.is_logged = is_logged;
	}

	/**
	 * @return the phoneNum
	 */
	public String getPhoneNum() {
		return phoneNum;
	}

	/**
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * @param phoneNum the phoneNum to set
	 */
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	
	

}
